<?php
define( 'CLASS_DIR', dirname(__FILE__) . '/classes' );

$directories = array( CLASS_DIR, CLASS_DIR . '/OORDB', CLASS_DIR . '/OORDB/MySQL' );

function __autoload( $classname )
{
	global $directories;
	
	foreach ( $directories as $directory )
	{
		$path = $directory . '/' . $classname . '.php';
		if ( is_file( $path ) )
		{
			require_once( $path );
		}
	}
	
}
?>
